package com.crop.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 加工批次表
 * </p>
 *
 * @author 作者
 * @since 2025-02-04
 */
@Getter
@Setter
@TableName("processing_batch")
@ApiModel(value = "ProcessingBatch对象", description = "加工批次表")
public class ProcessingBatch implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("加工企业ID")
    @TableField("processor_id")
    private Long processorId;

    @ApiModelProperty("批次ID")
    @TableField("batch_id")
    private Long batchId;

    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("加工日期")
    @TableField("processing_date")
    private LocalDate processingDate;

    @ApiModelProperty("状态：0-进行中 1-已完成")
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("deleted")
    private Boolean deleted;


}
